
<div class="row">
  <div class="col-md-3">
  </div>
  <div class="col-md-6">
    <div class="card">
      <div class="card-body">
        <h3 class="card-title">基础设置</h3>
        <% @settings.each do |setting| %>
        <div class="row">
          <div class="col-md-12">
            <div class="form-group">
              <label class="form-label"><%= i18n_global(setting.var) %></label>
              <%= form_for [:admin, setting] do |f| %>
                <% if setting.var == 'term_of_service'%>
                  <%= f.text_area :value, class: "form-control", id: "term_of_service_editor" %>
                  <%= f.submit "保 存", class:"btn btn-primary" %>
                <% else %>
                  <div class="input-group">
                    <%= f.text_field :value, class: "form-control" %>
                    <span class="input-group-append">
                      <%= f.submit "保 存", class:"btn btn-primary" %>
                    </span>
                  </div>
                <% end %>
              <% end %>
            </div>
          </div>
        </div>
        <% end %>
      </div>
    </div>
  </div>
  <div class="col-md-3">
  </div>
</div>